/*
 * @Author: your name
 * @Date: 2021-04-16 18:23:40
 * @LastEditTime: 2021-04-17 13:34:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \xmall_vue\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import * as API from '@/api'
Vue.config.productionTip = false
import '@/api/index'
// 引入elementUi
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入footer底部组件
import Footer from './components/Footer'
Vue.use(ElementUI);
Vue.component('Footer', Footer)

new Vue({
  beforeCreate(){
    Vue.prototype.$bus=this
    Vue.prototype.$API=API
  },
  render: h => h(App),
  router,
  store
}).$mount('#app')
